import request from '@/utils/request'

// 查询群发文件公告列表
export function listGroupfiles(query) {
  return request({
    url: '/system/groupfiles/list',
    method: 'get',
    params: query
  })
}

// 查询群发文件公告详细
export function getGroupfiles(id) {
  return request({
    url: '/system/groupfiles/' + id,
    method: 'get'
  })
}

// 新增群发文件公告
export function addGroupfiles(data) {
  return request({
    url: '/system/groupfiles',
    method: 'post',
    data: data
  })
}

// 修改群发文件公告
export function updateGroupfiles(data) {
  return request({
    url: '/system/groupfiles',
    method: 'put',
    data: data
  })
}

// 删除群发文件公告
export function delGroupfiles(id) {
  return request({
    url: '/system/groupfiles/' + id,
    method: 'delete'
  })
}
